package com.goalias.service;

import com.goalias.domain.dto.ArticleDTO;
import com.goalias.domain.dto.ArticleQueryDTO;
import com.goalias.domain.entity.Article;
import com.baomidou.mybatisplus.extension.service.IService;
import com.goalias.resp.Result;

import java.util.List;

/**
 * <p>
 * 文章表 服务类
 * </p>
 *
 * @author goalias
 * @since 2024-12-12
 */
public interface IArticleService extends IService<Article> {

    List<Article> listNormalArticle();
    Long getNormalArticleCount();

    Result getHotArticleList();

    Result getArticleList(ArticleQueryDTO articleQueryDTO);

    Result getArticleDetail(Long id);

    Result getArticleCount();

    List<Article> listViewCount();

    Result updateViewCount(Long id);

    Result getPreviousNextArticle(Long id);

    Result addArticle(ArticleDTO article);

    Result editArticle(ArticleDTO article);

}
